<template>
  <div class="xq-house">
    <div class="inner">
      <div class="title-xq">
        <h2>深圳热门小区推荐</h2>
        <div class="subtitle">
          <span class="txt">网罗优质小区，尽享精致生活</span>
          <span class="more pointer">更多小区推荐</span>
        </div>
      </div>
      <ul class="list clearfix2">
        <li v-for="(item,index) in [1,2,3]" :key="index">
          <div class="img ">
            <img
              class="ani lazy"
              src="https://fang-community.leyoujia.com/pic/hsl/2018-07/12/5ad14275-9218-4aec-b0e3-725465783aeb.jpg?imageView2/1/w/752/h/566"
            />
          </div>
          <div class="mask pointer" ></div>
          <div class="text">
            <div class="clearfix2">
              <div class="name">万科金色领域花园</div>
              <span class="price"> <em>参考价:</em>52000<em>元/㎡</em> </span>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<style lang="scss">
.xq-house {
  padding-top: 55px;
  padding-bottom: 50px;
  background: #fff;
  .inner {
    width: 1200px;
    margin: 0 auto;
    .title-xq {
      min-height: 38px;
      h2 {
        display: inline-block;
        font-size: 26px;
        line-height: 36px;
        color: #333;
        font-weight: 600;
      }
      .subtitle {
        display: flex;
        justify-content: space-between;
        width: 100%;
        .txt {
          font-size: 14px;
          line-height: 24px;
          color: #333;
        }
        .more {
          float: right;
          font-size: 14px;
          line-height: 24px;
          color: #333;
          &:hover {
              color: #E03236;
          }
        }
      }
    }
    .list {
      margin-top: 40px;
      display: flex;
      justify-content: space-between;
      list-style: none;
      padding: 0;
      position: relative;
      li {
        &:hover {
          .img {
            img {
              transform: scale(1.05);
            }
          }
        }
        &:first-child {
          margin-left: 0px;
        }
        .mask {
          position: absolute;
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          background: #000000;
          opacity: 0.5;
          filter: alpha(opacity=50);
          z-index: 1;
        }
        .text {
          position: absolute;
          top: 125px;
          left: 0;
          width: 100%;
          text-align: center;
          z-index: 2;
          .name {
            display: block;
            font-size: 28px;
            line-height: 38px;
            color: #ffffff;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          .price {
            font-size: 20px;
            line-height: 30px;
            color: #ffffff;
            em {
                font-style: normal;
              font-weight: normal;
            }
          }
        }
        width: 376px;
        margin-left: 30px;
        background: #fff;
        border-radius: 2px;
        position: relative;
        .img {
          width: 376px;
          height: 311px;
          overflow: hidden;
          border-radius: 2px 2px 0px 0px;
          img {
            width: 100%;
            height: 100%;
            transition: all 0.3s;
          }
        }
      }
    }
  }
}
</style>